﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Configuration;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WenChao
{
    public partial class Index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            sysHeader.InnerText = WebConfigurationManager.AppSettings["SystemName"];
          //  log.Value += "Page_Load" + "\n";
           // log.Value += Application["log"];
           // LogUtil.WriteLog(Application,"Page_Load" + "\n");
            WriteLog("Page_Load");

            IStudent stu = new Student()
            {
                StuCode="04182105",
                StuName="王文超"
            };

            WriteLog(stu.GetInfo());
            log.Value += Application["log"];

        }

        protected void Page_Init(object sender, EventArgs e)
        {
           // log.Value += "Page_Init" + "\n";
            // LogUtil.WriteLog(Application,"Page_Init" + "\n");
            WriteLog("Page_Init");
        }

        protected void Page_InitComplete(object sender, EventArgs e)
        {
           // log.Value += "Page_Init" + "\n";
            // LogUtil.WriteLog(Application,"Page_Init" + "\n");
            WriteLog("Page_InitComplete");
        }

        protected void Page_LoadComplete(object sender, EventArgs e)
        {
           // log.Value += "Page_Init" + "\n";
            // LogUtil.WriteLog(Application,"Page_Init" + "\n");
            WriteLog("Page_LoadComplete");
        }

        protected void Page_PreInit(object sender, EventArgs e)
        {
           // log.Value += "Page_Init" + "\n";
            // LogUtil.WriteLog(Application,"Page_Init" + "\n");
            WriteLog("Page_PreInit");
        }

        protected void Page_PreLoad(object sender, EventArgs e)
        {
           // log.Value += "Page_Init" + "\n";
            // LogUtil.WriteLog(Application,"Page_Init" + "\n");
            WriteLog("Page_PreLoad");
        }

        protected void Page_PreRenderComplete(object sender, EventArgs e)
        {
           // log.Value += "Page_Init" + "\n";
            // LogUtil.WriteLog(Application,"Page_Init" + "\n");
            WriteLog("Page_PreRenderComplete");
        }

        protected void Page_SaveStateComplete(object sender, EventArgs e)
        {
           // log.Value += "Page_Init" + "\n";
            // LogUtil.WriteLog(Application,"Page_Init" + "\n");
            WriteLog("Page_SaveStateComplete");
        }


        private void WriteLog(string log)
        {
            LogUtil.WriteLog(Application, log);
        }


    }
}